(function(exports){ 
    
    function IMScriptGetter(){}    
    
    //---------------------------------------------------------------------------
    
    IMScriptGetter.prototype.getScript = function(resConfig){
        return [
            'view/ChatGroupDialogView.js',
            'view/URLDialogView.js',            
            'view/ChatPanelView.js',
            'view/CardListView.js',
            
            'chatPanel/ChatViewToolbar.js',
            'chatPanel/MsgEditorToolbar.js',
            'chatPanel/ChatViewHeader.js',
            'chatPanel/ChatView.js',
            'chatPanel/MsgEditor.js',       
            'chatPanel/ChatPanel.js',
            
            'chatMsg/MsgType.js',
            'chatMsg/ChatMsg.js',
            'chatMsg/ChatAudioMsg.js',
            'chatMsg/ChatImageMsg.js',
            'chatMsg/ChatTextMsg.js',
            'chatMsg/ChatVideoMsg.js',
            'chatMsg/ChatLoadMoreMsg.js',
            'chatMsg/ChatTimeMsg.js',
            'chatMsg/ChatFileMsg.js',
            'chatMsg/ChatLocationMsg.js',
            'chatMsg/ChatStickerMsg.js',
            'chatMsg/ChatLoadMoreMsg.js',            
            'chatMsg/ShareLocDialog.js',
            
            'msgSender/MsgSender.js',
            'msgSender/StickerMsgSender.js',
            'msgSender/PlainTextMsgSender.js',
            'msgSender/LocationMsgSender.js',
            'msgSender/ImageMsgSender.js',
            'msgSender/FileMsgSender.js',
            
            'chatSession/sessionList.js',
            'chatSession/sessionSearch.js',
            
            'dashboard/CardList.js',
            'dashboard/chatGroupList.js',
            'dashboard/eventList.js',
            'dashboard/urlList.js',
            'dashboard/pageList.js',
            'dashboard/surveyList.js',
            'dashboard/dashboard.js',
            'dashboard/PreviewFrame.js',
            
            'emoji/IconSelector.js',
            'emoji/emojiSelectorTab.js',
            
            'store/ChatGroupStore.js',
            'store/UrlStore.js',        
            'store/ChatMsgStore.js',
                    
            'member/MemberType.js',
            'member/MemberSelector.js',                 
            'member/UserProfileViewerDialog.js',
            'member/GroupProfileViewerDialog.js',
            
            'chatGroup/ChatGroupDialog.js',
            'chatGroup/LocChatGroupDialog.js',
            'chatGroup/ChatGroupType.js',
            'chatGroup/ChatGroupPerm.js',
            'chatGroup/EntityType.js',
            
            'url/URLDialog.js',
            'url/ShareURLDialog.js',
            'url/EditPageDialog.js',
            
            'transfer/EventDispatcher.js',
            'transfer/EventType.js',
            'transfer/CometPipe.js',
            
            'index/header.js',
            'index/index.js'
        ];
    };
    
    //---------------------------------------------------------------------------
       
    exports.getResPath = function(resConfig){        
        var scriptGetter = new IMScriptGetter();        
        return scriptGetter.getScript(resConfig || {});
    };
})(typeof exports !== "undefined" ? exports : this.ujs);